
/**   
 * @Title: HomeIndexDAO.java 
 * @Package com.neusoft.neumooc.dao.front 
 * @Description: TODO 
 * @author acer   
 * @date 2016年9月17日 下午1:30:37 
*/

package com.neusoft.neumooc.dao.front;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.neusoft.core.common.BaseDAO;
import com.neusoft.core.common.exception.DAOException;
import com.neusoft.neumooc.vo.ContentVO;


/** 
 * @ClassName: HomeIndexDAO 
 * @Description: TODO 
 * @author acer
 * @date 2016年9月17日
 */
@Repository
public class HomeIndexDAOImpl extends BaseDAO implements HomeIndexDAO{

	
	/** 
	 * @Title: queryHomeList 
	 * @Description: TODO 
	 * @return
	 * @throws DAOException
	 */
	private final static String Get_HomeList = "select title,description,pic from cw_contents ";
	@Override
	public List<ContentVO> queryHomeList() throws DAOException {
	
		return  this.queryForBeanList(Get_HomeList, ContentVO.class);
	}
	/** 
	 * @Title: queryLink 
	 * @Description: TODO 
	 * @return
	 * @throws DAOException
	 */
	private final static String Query_Link = "select columnId from cw_columns where columnName='笔记本'";
	@Override
	public String queryLink() throws DAOException {
		
		return  this.queryForString(Query_Link);
	}

}
